<!--
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-10-10 10:19:06
 * @LastEditTime: 2025-09-17 18:20:32
 * @LastEditors: sueRimn
-->

<template>
  <view
    class="fixed-footer"
  >
    <view class="contact-consultant">
		<image src="https://image.chushouya.com/assets/images/product/icon_kefu.png" mode="aspectFill" class="head"></image>
		<view class="text">
			<text class="sub">懒的选？找回收顾问1V1报价</text>
			<view class="btn" @click="goService">联系顾问</view>
		</view>
	</view>
    <button
      class="button"
      :class="checkFinishQuestion ? '' : 'disable'"
      @click="$emit('onAssessClick')"
    >马上估价</button>
  </view>
</template>


<script>
import { waitShowToast,urlJump } from '@/utils'

export default {
  props: {
    systemInfo: { type: Object, default: {} },
    checkFinishQuestion: { type: Boolean, default: false }
  },
  methods: {
	goService() {
	//#ifndef MP-ALIPAY
	  uni.navigateTo({
        url: "/pages/service/index"
      })
	  //#endif
	  //#ifdef MP-ALIPAY 
	  urlJump({ routeType: 2, target: "https%3a%2f%2fszcskjyxgszj.qiyukf.com%2fclient%3fk%3d0e53e1b92d44e6d4ce46772a56d87068%26wp%3d1%26robotShuntSwitch%3d0%26shuntId%3d0%26language%3dzh-cn%26templateId%3d8131497" });
	  //#endif
	}
  }
}
</script>

<style lang="scss" scoped>


.fixed-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 28rpx 32rpx 32rpx;
  max-width: 750rpx;
  &.else{
    padding-bottom: 70rpx;
  }
  
  .contact-consultant {
	  display: flex;
	  justify-content: flex-start;
	  align-items: center;
	  image {
		  width: 80rpx;
		  height: 80rpx;
		  margin-right: 16rpx;
	  }
	  .text {
		  width: calc(100% - 92rpx);
		  height: 68rpx;
		  line-height: 68rpx;
		  background: #F6F7F9;
		  border-radius: 34rpx;
		  display: flex;
		  justify-content: space-between;
		  align-items: center;
		  padding: 0 10rpx 0 32rpx;
		  .sub {
			  white-space: nowrap;
			  overflow: hidden;
			  text-overflow: ellipsis;
			  font-family: PingFangSC, PingFang SC;
			  font-weight: 500;
			  font-size: 24rpx;
			  color: #333333;
		  }
		  .btn {
			  width: 136rpx;
			  font-family: PingFangSC, PingFang SC;
			  font-weight: 400;
			  font-size: var(--hui-font-size-24);
			  color: var(--hui-color-title);
			  height: 34rpx;
			  line-height: 34rpx;
			  text-align: center;
			  background-color: var(--hui-button-bg);
			  border-radius: 24rpx;
			  position: relative;
		  }
	  }
  }
}
::v-deep {
  .text .btn contact-button{
    width: 100%;
    height: 100%;
    position: absolute;
    left:0;
    top:0;
    opacity:0;
    z-index:88;
  }
}
.button{
	margin-top: 32rpx;
  font-size: 30rpx;
  color: var(--hui-color-title);
  background: var(--hui-button-bg);
  line-height: 90rpx;
  border-radius: 45rpx;
  width: 100%;
  font-weight: 500;
  &.disable{
    background: #E6E6E6;
  }
}



</style> 